package com.zboot.zbootadmin.project.gen.mapper;


import com.zboot.zbootadmin.project.gen.vo.TablesVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @Author: zyt
 * @Description:获取数据库信息
 * @Date: Created in 21:45 2020/6/25
 */
@Repository
@Mapper
public interface TableMapper {

    /**
     *
     * @Description: 获取所有表信息
     *
     * @author: zyt
     * @date: 21:56 2020/6/25
     * @param: []
     * @return: java.util.List<java.util.Map<java.lang.String,java.lang.Object>>
     *
     */
    List<Map<String,Object>> showAllTables(@Param("tablesVo") TablesVo tablesVo);

    @Select("select count(1) from  information_schema.TABLES where table_schema = ( SELECT DATABASE ( ) ) ")
    Integer getTotal();
}
